package au.edu.rmit.clock;

import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import android.widget.TextView;

public class ClockWidget extends AppWidgetProvider {
	@Override
	public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) 
	{
		final int N = appWidgetIds.length;
		for (int i = 0; i < N; i++) {
		int appWidgetId = appWidgetIds[i];
		// Create a Remove View
		RemoteViews views = new RemoteViews(context.getPackageName(),R.layout.widget_layout);
		// TODO Update the UI.
		// Notify the App Widget Manager to update the widget using
		// the modified remote view.
		appWidgetManager.updateAppWidget(appWidgetId, views);
		}

	}
}
